package sctu.edu.java.year2016.team07.shihaocheng.day20160520.Chpater4_1;

/**
 * Created by admin on 2016/5/20.
 *判断x是奇数还是偶数
 */


import java.util.Scanner;
public class chapter4_1 {
    public static void main(String[] args) {
        Scanner scan =  new Scanner(System.in);
        System.out.println("please enter x:");
        Long x =scan.nextLong();
        String mod = (x % 2 == 0)?"x 是偶数":"x 是奇数";

        System.out.println(mod);
    }
}
